import { createBrowserRouter } from "react-router-dom";
import Article from "../pages/Article/Article";

import Ches from "../pages/Ches/Ches";
import Detail from "../pages/Detail/Detail";
import Home from "../pages/Home/Home";
import Users from "../pages/Users/Users";


export const routerlist=[
    {
        path:'/ches',
        element:<Ches />,
        meta:{title:'关注'}
    },
    {
        path:'/article',
        element:<Article />,
        meta:{title:'推荐'}
    },
    {
        path:'/detail',
        element:<Detail />,
        meta:{title:'热榜'}
    },
    {
        path:'/users',
        element:<Users />,
        meta:{title:'专栏'}
    },
]


const router=createBrowserRouter([
    {
        path:'/',
        element:<Home />,
        children:routerlist
    }
])

export default router